import React from 'react';
import classnames from 'classnames';
import './index.less';

type EmptyProps = {
  className?: string;
  title?: string;
};

const Empty: React.FC<EmptyProps> = ({ className, title = '暂无数据' }) => {
  return (
    <div className={classnames('hr-empty', className)}>
      {/* <img
        src="https://longbolife-frontend.oss-cn-hangzhou.aliyuncs.com/weapp/mascot_nothing.png"
        className={styles.empty_img}
        alt=""
      /> */}
      {title && <div className="hr-empty-text">{title}</div>}
    </div>
  );
};

export default Empty;
